<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<link rel="stylesheet" href="CSS/estilo.css" type="text/css" media="all">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Consulta de Paquetes</title>
</head>
<body>

<div id="divPrincipal" class="bordesRedondeados">
	<div id="divMenu" class="bordesRedondeados">
		<ul style="list-style-type: none;">
			<li><a href="menu.jsp" class="links">Home</a></li><br>			
			<li><a href="clientes" class="links">Seleccion	de	clientes</a></li><br>					
		</ul>
	</div>
	<div id="divSubMenu" class="bordesRedondeados">
		<span class="titulo">SELECCION PAQUETE</span><br><br>
		<form name="frmPaquetes" action="reservaPaqueteservlet" method="post"> 	
			<table  width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">			
				<tr>
					<th scope="col">Id</th>	
					<th scope="col">Ciudad Origen</th>
					<th scope="col">Ciudad Destino</th>
					<th scope="col">Aeropuerto origen</th>
					<th scope="col">Aeropueto Destino</th>
					<th scope="col">Avion</th>
					<th scope="col">Fecha Desde</th>
					<th scope="col">Fecha Hasta </th>
					<th scope="col">Disp.</th>
					<th scope="col">Valor</th>
					<th scope="col">Sel.</th>
				</tr>	
				<tbody>
					<c:forEach items="${ paquetes }" var="paquete">
						<tr>
							<td>${ paquete.id }</td>
							<td>${ paquete.origen }</td>
							<td>${ paquete.destino }</td>	
							<td>${ paquete.aeroOrigen }</td>
							<td>${ paquete.aeroDestino }</td>
							<td>${ paquete.avion }</td>
							<td>${ paquete.fchDesde }</td>
							<td>${ paquete.fchHasta }</td>							
							<td>${ paquete.disponibles }</td>
							<td>${ paquete.precio }</td>							
							<td> 
								<input type="radio" name="idPaquetes" value=${ paquete.id } checked = "checked">
							</td>
						</tr>
					</c:forEach>
				</tbody>
				
						<tr border = 0>
							
	
				
			</tr>				
				<td><input type="submit" value="Reservar"></td>
				<td><input type="button" onclick=" location.href='menu.jsp' " value="Cancelar"/></td>				
			</table>
			</form>
	
		
	</div>
</div>
</body>
</html>